package com.shycloud.mido.opter.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "sm_member_activate")
public class MemberActivate {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 激活码
     */
    @TableField(value = "actv_code")
    private String actvCode;

    /**
     * 纠错大师设备编号(出厂)
     */
    @TableField(value = "udid")
    private String udid;

    /**
     * 会员ID(老师/学生)
     */
    @TableField(value = "member_id")
    private String memberId;

    /**
     * 激活码归属机构
     */
    @TableField(value = "org_id")
    private Integer orgId;

    /**
     * 激活码归属运营商
     */
    @TableField(value = "optr_id")
    private Integer optrId;

    /**
     * 兑换之前的码
     */
    @TableField(value = "ref_code")
    private String refCode;

    /**
     * 目前只有1纠错大师
     */
    @TableField(value = "type")
    private String type;

    /**
     * 0 Zebra遗留码 1 Mido新码 2管理后台权限开通分配 3 体验
     */
    @TableField(value = "special_type")
    private Integer specialType;

    /**
     * 激活开始时间
     */
    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 激活天数(0为永久)
     */
    @TableField(value = "duration")
    private Integer duration;

    /**
     * 0 未分配 1 已分配
     */
    @TableField(value = "status")
    private String status;

    /**
     * 扩展内容
     */
    @TableField(value = "extension")
    private String extension;

    /**
     * 注释
     */
    @TableField(value = "comment")
    private String comment;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 更新人
     */
    @TableField(value = "updated_by")
    private String updatedBy;

    public static final String COL_ID = "id";

    public static final String COL_ACTV_CODE = "actv_code";

    public static final String COL_UDID = "udid";

    public static final String COL_MEMBER_ID = "member_id";

    public static final String COL_ORG_ID = "org_id";

    public static final String COL_OPTR_ID = "optr_id";

    public static final String COL_REF_CODE = "ref_code";

    public static final String COL_TYPE = "type";

    public static final String COL_SPECIAL_TYPE = "special_type";

    public static final String COL_START_TIME = "start_time";

    public static final String COL_DURATION = "duration";

    public static final String COL_STATUS = "status";

    public static final String COL_EXTENSION = "extension";

    public static final String COL_COMMENT = "comment";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_UPDATED_BY = "updated_by";
}